home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / libgplus.5 / libgplus / etc / graph / makefile.in < prev    next >
Encoding:
Makefile  |  1993-04-19  |  1.9 KB  |  71 lines

  1. # A makefile for the stuff now in libg++/etc
  2.  
  3. srcdir = .
  4.  
  5. #### package, host, target, and site dependent Makefile fragments come in here.
  6. ##
  7.  
  8. check: graph $(srcdir)/test.dat $(srcdir)/test2.dat
  9.     ./graph -d -c 3 -g 2 -l "a diagonal line" -X "x axis" -Y "y axis" -m 1\
  10.             <$(srcdir)/test2.dat >test2.pl
  11.     ./graph -d <$(srcdir)/test.dat >test.pl
  12.     @echo use plot to look at the plot files test.pl and test2.pl
  13. run_tests: check
  14.  
  15. OBJECTS = pPlex.o pXPlex.o eGetOpt.o ePlotFile.o read_data.o tick_intrvl.o
  16. DEPEND_SOURCES = $(srcdir)/*.cc
  17.  
  18. libgraph.a : $(OBJECTS)
  19.     rm -f libgraph.a
  20.     $(AR) $(AR_FLAGS) libgraph.a $(OBJECTS)
  21.     $(RANLIB) libgraph.a
  22.  
  23. graph : graph.o libgraph.a
  24.     $(CXX) graph.o libgraph.a $(LIBS) -lm -o $@
  25.  
  26. graph.o: pXPlex.h pPlex.h
  27.  
  28. pXPlex.h pXPlex.cc:
  29.     PROTODIR=$(PROTODIR); export PROTODIR; ../../genclass/genclass point val XPlex p
  30. pPlex.h pPlex.cc:
  31.     PROTODIR=$(PROTODIR); export PROTODIR; ../../genclass/genclass point val Plex p
  32.  
  33. # GNU tail doesn't handle -r - use the 'tac' program instead.
  34. REVERSE_LINES = tail -r
  35. #REVERSE_LINES = tac
  36.  
  37. $(srcdir)/test.dat:
  38.     -echo 0 0 1 1 2 0 | spline | $(REVERSE_LINES) > $(srcdir)/test.dat
  39.  
  40. $(srcdir)/test2.dat:
  41.     echo 0 0 >$(srcdir)/test2.dat
  42.     echo 1 1 "label for 1 1" >>$(srcdir)/test2.dat
  43.     echo 2 2 >>$(srcdir)/test2.dat
  44.     echo 3 3 "label for 3 3" >>$(srcdir)/test2.dat
  45.     echo 4 4 >>$(srcdir)/test2.dat
  46.  
  47. DIST = Makefile graph.tex ChangeLog \
  48. eGetOpt.cc        read_data.cc \
  49. eGetOpt.h        read_data.h \
  50. ePlotFile.cc        tick_intrvl.cc \
  51. ePlotFile.h        tick_intrvl.h \
  52. graph.cc        pdefs.h
  53.  
  54. graph.tar.Z : $(DIST) CHECKSUMS
  55.     tar cfz $@ $^ CHECKSUMS
  56.  
  57. CHECKSUMS : $(DIST)
  58.     sum $(DIST) >CHECKSUMS
  59.  
  60. dist : graph-dist.tar.Z
  61.  
  62. graph-dist.tar.Z : $(DIST)
  63.     -rm -rf graph-dist
  64.     mkdir graph-dist
  65.     ln $(DIST) graph-dist
  66.     tar cfz graph-dist.tar.Z $(DIST)
  67.     rm -rf graph-dist
  68.  
  69. graph.shar : pdefs.h graph.cc Makefile graph.texinfo
  70.     shar  pdefs.h graph.cc Makefile graph.texinfo > $@
  71.